﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.ObjectBuilder;
using Microsoft.Practices.CompositeWeb;

namespace TestWCSFSitemaps.Statements.Views
{
    public class SeeXPresenter : Presenter<ISeeXView>
    {

        // NOTE: Uncomment the following code if you want ObjectBuilder to inject the module controller
        //       The code will not work in the Shell module, as a module controller is not created by default
        //
        private IStatementsController _controller;
        public SeeXPresenter([CreateNew] IStatementsController controller)
        {
            _controller = controller;
        }

        public override void OnViewLoaded()
        {
            // TODO: Implement code that will be executed every time the view loads
        }

        public override void OnViewInitialized()
        {
            // TODO: Implement code that will be executed the first time the view loads
        }

        public void GoSeeY()
        {
            _controller.GoSeeY();
        }

        public void GoSeeZ()
        {
            _controller.GoSeeZ();
        }

        public void Abort()
        {
            _controller.Abort();
        }

        public void StoreText(string text)
        {
            _controller.StoreText(text);
        }
    }
}




